package com.yc.web.DTO;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.io.Serializable;

@Data
public class OrderItemsDTO implements Serializable {
    private static final long serialVersionUID = 1L;

    @JsonSerialize(using = ToStringSerializer.class)
    private Long orderItemId ;// '订单详情id',
    @JsonSerialize(using = ToStringSerializer.class)
    private Long orderId ;// '订单id',
    @JsonSerialize(using = ToStringSerializer.class)
    private Long productId;// '商品id',
    private Integer quantity ;// '数量',
    private Double price ;// '商品单价',

    //添加商品的信息
    private ProductDTO productDTO;
}
